package com.huarui.user.error;

public enum UserError {
	/**
	 * 邮件地址重复
	 */
	DUPLICATED_EMAIL("duplicated_email", "该邮箱已经被使用"),

	ACTIVE_FAILTURE("active_failture", "您已经激活成功,不能重复激活"),
	
	
	RESET_PASSWORD_FAILTURE("reset_password_failture","重置密码失败"),
	
	EXPORED_TIME_WRONG("expored_time_wrong","您好,您重置密码的激活码已经过期,请重新发送邮件生成新的激活码"),
	
	DUPLICATED_IDENT("duplicated_ident", "该身份证已经存在"),

	USER_IDENT_FORMAT_ERROR("user.ident.format.error", "身份证格式不正确"),

	WRONG_NAME_OR_EMAIL("The user name or email you input dose NOT right",
			"用户邮箱或密码输入不正确"),

	WRONG_PASSWORD("wrong password", "密码输入错误"),

	ALREADY_BE_ACTIVED("already be actived", "该用户已经被激活"),

	SHOULD_BE_UNACTIVED("user should be actived", "该用户还未激活账号，请去邮箱激活"),

	USER_NOT_EXSIT("user is not exsit", "该用户不存在"),

	EMPLOYEE_NOT_EXSIT("employee is not exsit", "该员工不存在"),

	NO_RIGHT_DELETE_THE_EMPLOYEE("no authorize to delete the employee",
			"没有权限删除该用户"),

	FORMAT_WRONG("format_wrong", "数据格式错误"),

	VERIFYCODE_WRONG("wrong verifycode", "图片验证码输入错误"),

	LOGIN_FAIL("login failure", "登入失败");

	private String chError;

	private String enError;

	UserError(String enError, String chError) {

		this.chError = chError;
		this.enError = enError;

	}

	public String getChError() {
		return chError;
	}

	public String getEnError() {
		return enError;
	}

}
